<?php
$tdatatbl_hop_tac=array();
	$tdatatbl_hop_tac[".NumberOfChars"]=80; 
	$tdatatbl_hop_tac[".ShortName"]="tbl_hop_tac";
	$tdatatbl_hop_tac[".OwnerID"]="";
	$tdatatbl_hop_tac[".OriginalTable"]="tbl_hop_tac";


	
//	field labels
$fieldLabelstbl_hop_tac = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelstbl_hop_tac["English"]=array();
	$fieldToolTipstbl_hop_tac["English"]=array();
	$fieldLabelstbl_hop_tac["English"]["id"] = "Id";
	$fieldToolTipstbl_hop_tac["English"]["id"] = "";
	$fieldLabelstbl_hop_tac["English"]["hinh_anh"] = "Hinh Anh";
	$fieldToolTipstbl_hop_tac["English"]["hinh_anh"] = "";
	$fieldLabelstbl_hop_tac["English"]["tom_tat"] = "Tom Tat";
	$fieldToolTipstbl_hop_tac["English"]["tom_tat"] = "";
	$fieldLabelstbl_hop_tac["English"]["noi_dung"] = "Noi Dung";
	$fieldToolTipstbl_hop_tac["English"]["noi_dung"] = "";
	$fieldLabelstbl_hop_tac["English"]["ma_loai_hop_tac"] = "Ma Loai Hop Tac";
	$fieldToolTipstbl_hop_tac["English"]["ma_loai_hop_tac"] = "";
	$fieldLabelstbl_hop_tac["English"]["ten_loai_hop_tac"] = "Ten Loai Hop Tac";
	$fieldToolTipstbl_hop_tac["English"]["ten_loai_hop_tac"] = "";
	if (count($fieldToolTipstbl_hop_tac["English"])){
		$tdatatbl_hop_tac[".isUseToolTips"]=true;
	}
}


	
	$tdatatbl_hop_tac[".NCSearch"]=true;

	

$tdatatbl_hop_tac[".shortTableName"] = "tbl_hop_tac";
$tdatatbl_hop_tac[".nSecOptions"] = 0;
$tdatatbl_hop_tac[".recsPerRowList"] = 1;	
$tdatatbl_hop_tac[".tableGroupBy"] = "0";
$tdatatbl_hop_tac[".mainTableOwnerID"] = "";
$tdatatbl_hop_tac[".moveNext"] = 1;




$tdatatbl_hop_tac[".showAddInPopup"] = false;

$tdatatbl_hop_tac[".showEditInPopup"] = false;

$tdatatbl_hop_tac[".showViewInPopup"] = false;


$tdatatbl_hop_tac[".fieldsForRegister"] = array();

$tdatatbl_hop_tac[".listAjax"] = false;

	$tdatatbl_hop_tac[".audit"] = false;

	$tdatatbl_hop_tac[".locking"] = false;
	
$tdatatbl_hop_tac[".listIcons"] = true;
$tdatatbl_hop_tac[".edit"] = true;
$tdatatbl_hop_tac[".inlineEdit"] = true;
$tdatatbl_hop_tac[".view"] = true;

$tdatatbl_hop_tac[".exportTo"] = true;

$tdatatbl_hop_tac[".printFriendly"] = true;

$tdatatbl_hop_tac[".delete"] = true;

$tdatatbl_hop_tac[".showSimpleSearchOptions"] = false;

$tdatatbl_hop_tac[".showSearchPanel"] = true;


$tdatatbl_hop_tac[".isUseAjaxSuggest"] = true;

$tdatatbl_hop_tac[".rowHighlite"] = true;


// button handlers file names

$tdatatbl_hop_tac[".addPageEvents"] = false;

$tdatatbl_hop_tac[".arrKeyFields"][] = "id";

// use datepicker for search panel
$tdatatbl_hop_tac[".isUseCalendarForSearch"] = false;

// use timepicker for search panel
$tdatatbl_hop_tac[".isUseTimeForSearch"] = false;

$tdatatbl_hop_tac[".isUseiBox"] = false;



$tdatatbl_hop_tac[".isUseInlineAdd"] = true;

$tdatatbl_hop_tac[".isUseInlineEdit"] = true;
$tdatatbl_hop_tac[".isUseInlineJs"] = $tdatatbl_hop_tac[".isUseInlineAdd"] || $tdatatbl_hop_tac[".isUseInlineEdit"];

$tdatatbl_hop_tac[".allSearchFields"] = array();

$tdatatbl_hop_tac[".globSearchFields"][] = "hinh_anh";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("hinh_anh", $tdatatbl_hop_tac[".allSearchFields"]))
{
	$tdatatbl_hop_tac[".allSearchFields"][] = "hinh_anh";	
}
$tdatatbl_hop_tac[".globSearchFields"][] = "ma_loai_hop_tac";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ma_loai_hop_tac", $tdatatbl_hop_tac[".allSearchFields"]))
{
	$tdatatbl_hop_tac[".allSearchFields"][] = "ma_loai_hop_tac";	
}
$tdatatbl_hop_tac[".globSearchFields"][] = "ten_loai_hop_tac";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ten_loai_hop_tac", $tdatatbl_hop_tac[".allSearchFields"]))
{
	$tdatatbl_hop_tac[".allSearchFields"][] = "ten_loai_hop_tac";	
}


$tdatatbl_hop_tac[".googleLikeFields"][] = "id";
$tdatatbl_hop_tac[".googleLikeFields"][] = "hinh_anh";
$tdatatbl_hop_tac[".googleLikeFields"][] = "ma_loai_hop_tac";
$tdatatbl_hop_tac[".googleLikeFields"][] = "ten_loai_hop_tac";



$tdatatbl_hop_tac[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatatbl_hop_tac[".allSearchFields"])) 
{
	$tdatatbl_hop_tac[".allSearchFields"][] = "id";	
}
$tdatatbl_hop_tac[".advSearchFields"][] = "hinh_anh";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("hinh_anh", $tdatatbl_hop_tac[".allSearchFields"])) 
{
	$tdatatbl_hop_tac[".allSearchFields"][] = "hinh_anh";	
}
$tdatatbl_hop_tac[".advSearchFields"][] = "tom_tat";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("tom_tat", $tdatatbl_hop_tac[".allSearchFields"])) 
{
	$tdatatbl_hop_tac[".allSearchFields"][] = "tom_tat";	
}
$tdatatbl_hop_tac[".advSearchFields"][] = "noi_dung";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("noi_dung", $tdatatbl_hop_tac[".allSearchFields"])) 
{
	$tdatatbl_hop_tac[".allSearchFields"][] = "noi_dung";	
}
$tdatatbl_hop_tac[".advSearchFields"][] = "ma_loai_hop_tac";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ma_loai_hop_tac", $tdatatbl_hop_tac[".allSearchFields"])) 
{
	$tdatatbl_hop_tac[".allSearchFields"][] = "ma_loai_hop_tac";	
}
$tdatatbl_hop_tac[".advSearchFields"][] = "ten_loai_hop_tac";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ten_loai_hop_tac", $tdatatbl_hop_tac[".allSearchFields"])) 
{
	$tdatatbl_hop_tac[".allSearchFields"][] = "ten_loai_hop_tac";	
}

$tdatatbl_hop_tac[".isTableType"] = "list";


	

$tdatatbl_hop_tac[".isDisplayLoading"] = true;

$tdatatbl_hop_tac[".isResizeColumns"] = false;





$tdatatbl_hop_tac[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatatbl_hop_tac[".strOrderBy"] = $gstrOrderBy;
	
$tdatatbl_hop_tac[".orderindexes"] = array();

$tdatatbl_hop_tac[".sqlHead"] = "SELECT tbl_hop_tac.id,  tbl_hop_tac.hinh_anh,  tbl_hop_tac.tom_tat,  tbl_hop_tac.noi_dung,  tbl_hop_tac.ma_loai_hop_tac,  tbl_loai_hop_tac.ten_loai_hop_tac";
$tdatatbl_hop_tac[".sqlFrom"] = "FROM tbl_hop_tac  INNER JOIN tbl_loai_hop_tac ON tbl_hop_tac.ma_loai_hop_tac = tbl_loai_hop_tac.id";
$tdatatbl_hop_tac[".sqlWhereExpr"] = "";
$tdatatbl_hop_tac[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatatbl_hop_tac[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatatbl_hop_tac[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "id";
	$tdatatbl_hop_tac[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "tbl_hop_tac";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "tbl_hop_tac.id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		
		
		
		
		
		
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				
		
				
		
		
		
			$tdatatbl_hop_tac["id"]=$fdata;
//	hinh_anh
	$fdata = array();
	$fdata["strName"] = "hinh_anh";
	$fdata["ownerTable"] = "tbl_hop_tac";
		$fdata["Label"]="Hinh Anh"; 
	
		
		$fdata["LinkPrefix"]="upload/"; 
	
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Document upload";
	$fdata["ViewFormat"]= "Document Download";
	
		
		
		
		
		
	$fdata["GoodName"]= "hinh_anh";
	
		$fdata["FullName"]= "tbl_hop_tac.hinh_anh";
	
		
		
		
		
		
			$fdata["UploadFolder"]="upload"; 
		$fdata["Index"]= 2;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_hop_tac["hinh_anh"]=$fdata;
//	tom_tat
	$fdata = array();
	$fdata["strName"] = "tom_tat";
	$fdata["ownerTable"] = "tbl_hop_tac";
		$fdata["Label"]="Tom Tat"; 
	
		
		
	$fdata["FieldType"]= 128;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "HTML";
	
		
		
		
		
		
	$fdata["GoodName"]= "tom_tat";
	
		$fdata["FullName"]= "tbl_hop_tac.tom_tat";
	
		
		$fdata["UseRTE"]=true; 
	
		
		$fdata["UseRTEFCK"] = true;
	
		
				$fdata["Index"]= 3;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=500";
		$fdata["nRows"] = 500;
			$fdata["EditParams"].= " cols=500";
		$fdata["nCols"] = 500;
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_hop_tac["tom_tat"]=$fdata;
//	noi_dung
	$fdata = array();
	$fdata["strName"] = "noi_dung";
	$fdata["ownerTable"] = "tbl_hop_tac";
		$fdata["Label"]="Noi Dung"; 
	
		
		
	$fdata["FieldType"]= 128;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "HTML";
	
		
		
		
		
		
	$fdata["GoodName"]= "noi_dung";
	
		$fdata["FullName"]= "tbl_hop_tac.noi_dung";
	
		
		$fdata["UseRTE"]=true; 
	
		
		$fdata["UseRTEFCK"] = true;
	
		
				$fdata["Index"]= 4;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=1200";
		$fdata["nRows"] = 1200;
			$fdata["EditParams"].= " cols=600";
		$fdata["nCols"] = 600;
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_hop_tac["noi_dung"]=$fdata;
//	ma_loai_hop_tac
	$fdata = array();
	$fdata["strName"] = "ma_loai_hop_tac";
	$fdata["ownerTable"] = "tbl_hop_tac";
		$fdata["Label"]="Ma Loai Hop Tac"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="id";
	$fdata["LinkFieldType"]=3;
	$fdata["DisplayField"]="ten_loai_hop_tac";
				$fdata["LookupTable"]="tbl_loai_hop_tac";
	$fdata["LookupOrderBy"]="";
																			
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ma_loai_hop_tac";
	
		$fdata["FullName"]= "tbl_hop_tac.ma_loai_hop_tac";
	
		
		
		
		
		
				$fdata["Index"]= 5;
				
		
		$fdata["bAddPage"]=true; 
	
		
		$fdata["bEditPage"]=true; 
	
		
		
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_hop_tac["ma_loai_hop_tac"]=$fdata;
//	ten_loai_hop_tac
	$fdata = array();
	$fdata["strName"] = "ten_loai_hop_tac";
	$fdata["ownerTable"] = "tbl_loai_hop_tac";
		$fdata["Label"]="Ten Loai Hop Tac"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ten_loai_hop_tac";
	
		$fdata["FullName"]= "tbl_loai_hop_tac.ten_loai_hop_tac";
	
		
		
		
		
		
				$fdata["Index"]= 6;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_hop_tac["ten_loai_hop_tac"]=$fdata;

	
$tables_data["tbl_hop_tac"]=&$tdatatbl_hop_tac;
$field_labels["tbl_hop_tac"] = &$fieldLabelstbl_hop_tac;
$fieldToolTips["tbl_hop_tac"] = &$fieldToolTipstbl_hop_tac;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["tbl_hop_tac"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["tbl_hop_tac"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto13=array();
$proto13["m_strHead"] = "SELECT";
$proto13["m_strFieldList"] = "tbl_hop_tac.id,  tbl_hop_tac.hinh_anh,  tbl_hop_tac.tom_tat,  tbl_hop_tac.noi_dung,  tbl_hop_tac.ma_loai_hop_tac,  tbl_loai_hop_tac.ten_loai_hop_tac";
$proto13["m_strFrom"] = "FROM tbl_hop_tac  INNER JOIN tbl_loai_hop_tac ON tbl_hop_tac.ma_loai_hop_tac = tbl_loai_hop_tac.id";
$proto13["m_strWhere"] = "";
$proto13["m_strOrderBy"] = "";
$proto13["m_strTail"] = "";
$proto14=array();
$proto14["m_sql"] = "";
$proto14["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto14["m_column"]=$obj;
$proto14["m_contained"] = array();
$proto14["m_strCase"] = "";
$proto14["m_havingmode"] = "0";
$proto14["m_inBrackets"] = "0";
$proto14["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto14);

$proto13["m_where"] = $obj;
$proto16=array();
$proto16["m_sql"] = "";
$proto16["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto16["m_column"]=$obj;
$proto16["m_contained"] = array();
$proto16["m_strCase"] = "";
$proto16["m_havingmode"] = "0";
$proto16["m_inBrackets"] = "0";
$proto16["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto16);

$proto13["m_having"] = $obj;
$proto13["m_fieldlist"] = array();
						$proto18=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "tbl_hop_tac"
));

$proto18["m_expr"]=$obj;
$proto18["m_alias"] = "";
$obj = new SQLFieldListItem($proto18);

$proto13["m_fieldlist"][]=$obj;
						$proto20=array();
			$obj = new SQLField(array(
	"m_strName" => "hinh_anh",
	"m_strTable" => "tbl_hop_tac"
));

$proto20["m_expr"]=$obj;
$proto20["m_alias"] = "";
$obj = new SQLFieldListItem($proto20);

$proto13["m_fieldlist"][]=$obj;
						$proto22=array();
			$obj = new SQLField(array(
	"m_strName" => "tom_tat",
	"m_strTable" => "tbl_hop_tac"
));

$proto22["m_expr"]=$obj;
$proto22["m_alias"] = "";
$obj = new SQLFieldListItem($proto22);

$proto13["m_fieldlist"][]=$obj;
						$proto24=array();
			$obj = new SQLField(array(
	"m_strName" => "noi_dung",
	"m_strTable" => "tbl_hop_tac"
));

$proto24["m_expr"]=$obj;
$proto24["m_alias"] = "";
$obj = new SQLFieldListItem($proto24);

$proto13["m_fieldlist"][]=$obj;
						$proto26=array();
			$obj = new SQLField(array(
	"m_strName" => "ma_loai_hop_tac",
	"m_strTable" => "tbl_hop_tac"
));

$proto26["m_expr"]=$obj;
$proto26["m_alias"] = "";
$obj = new SQLFieldListItem($proto26);

$proto13["m_fieldlist"][]=$obj;
						$proto28=array();
			$obj = new SQLField(array(
	"m_strName" => "ten_loai_hop_tac",
	"m_strTable" => "tbl_loai_hop_tac"
));

$proto28["m_expr"]=$obj;
$proto28["m_alias"] = "";
$obj = new SQLFieldListItem($proto28);

$proto13["m_fieldlist"][]=$obj;
$proto13["m_fromlist"] = array();
												$proto30=array();
$proto30["m_link"] = "SQLL_MAIN";
			$proto31=array();
$proto31["m_strName"] = "tbl_hop_tac";
$proto31["m_columns"] = array();
$proto31["m_columns"][] = "id";
$proto31["m_columns"][] = "hinh_anh";
$proto31["m_columns"][] = "tom_tat";
$proto31["m_columns"][] = "noi_dung";
$proto31["m_columns"][] = "ma_loai_hop_tac";
$obj = new SQLTable($proto31);

$proto30["m_table"] = $obj;
$proto30["m_alias"] = "";
$proto32=array();
$proto32["m_sql"] = "";
$proto32["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto32["m_column"]=$obj;
$proto32["m_contained"] = array();
$proto32["m_strCase"] = "";
$proto32["m_havingmode"] = "0";
$proto32["m_inBrackets"] = "0";
$proto32["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto32);

$proto30["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto30);

$proto13["m_fromlist"][]=$obj;
												$proto34=array();
$proto34["m_link"] = "SQLL_INNERJOIN";
			$proto35=array();
$proto35["m_strName"] = "tbl_loai_hop_tac";
$proto35["m_columns"] = array();
$proto35["m_columns"][] = "id";
$proto35["m_columns"][] = "ten_loai_hop_tac";
$obj = new SQLTable($proto35);

$proto34["m_table"] = $obj;
$proto34["m_alias"] = "";
$proto36=array();
$proto36["m_sql"] = "tbl_hop_tac.ma_loai_hop_tac = tbl_loai_hop_tac.id";
$proto36["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "ma_loai_hop_tac",
	"m_strTable" => "tbl_hop_tac"
));

$proto36["m_column"]=$obj;
$proto36["m_contained"] = array();
$proto36["m_strCase"] = "= tbl_loai_hop_tac.id";
$proto36["m_havingmode"] = "0";
$proto36["m_inBrackets"] = "0";
$proto36["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto36);

$proto34["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto34);

$proto13["m_fromlist"][]=$obj;
$proto13["m_groupby"] = array();
$proto13["m_orderby"] = array();
$obj = new SQLQuery($proto13);

$queryData_tbl_hop_tac = $obj;
$tdatatbl_hop_tac[".sqlquery"] = $queryData_tbl_hop_tac;

$tableEvents["tbl_hop_tac"] = new eventsBase;

?>
